/*
 * @Author: zqg
 * @Date: 2021-01-06 14:39:05
 * @LastEditors: zqg
 * @LastEditTime: 2021-02-24 00:48:02
 * @Description: file content
 */
import Layout from '@/views/layout/Layout'

const activity = {
  path: '/personnel',
  component: Layout,
  name: 'personnel',
  alwaysShow: true,
  meta: { title: 'personnel', icon: 'personnel' },
  children: [
    {
      path: 'employee', //员工
      component: () => import('@/views/after-sale/personnel/employee/employee'),
      name: 'employee',
      meta: { title: 'employee' }
    },
    {
      path: 'addEmployee', //新增员工
      component: () =>
        import('@/views/after-sale/personnel/employee/addEmployee'),
      hidden: true,
      name: 'addEmployee',
      meta: { title: 'addEmployee' }
    },
    {
      path: 'updataEmployee', //编辑员工
      component: () =>
        import('@/views/after-sale/personnel/employee/addEmployee'),
      hidden: true,
      name: 'updataEmployee',
      meta: { title: 'updataEmployee' }
    },
    {
      path: 'team', //班组
      component: () => import('@/views/after-sale/personnel/team/index'),
      name: 'team',
      meta: { title: 'team' }
    },
    {
      path: 'adddTeam', //新增班组
      component: () => import('@/views/after-sale/personnel/team/addTeam'),
      hidden: true,
      name: 'adddTeam',
      meta: { title: 'adddTeam' }
    },
    {
      path: 'editTeam', //新增班组
      component: () => import('@/views/after-sale/personnel/team/addTeam'),
      hidden: true,
      name: 'editTeam',
      meta: { title: 'editTeam' }
    },
    {
      path: 'workstation', //工位
      component: () => import('@/views/after-sale/personnel/workstation/index'),
      name: 'workstation',
      meta: { title: 'workstation' }
    },
    {
      path: 'addWorkstation', //新增工位
      component: () =>
        import('@/views/after-sale/personnel/workstation/addWorkstation'),
      hidden: true,
      name: 'addWorkstation',
      meta: { title: 'addWorkstation' }
    },
    {
      path: 'eidtWorkstation', //修改工位
      component: () =>
        import('@/views/after-sale/personnel/workstation/addWorkstation'),
      hidden: true,
      name: 'eidtWorkstation',
      meta: { title: 'eidtWorkstation' }
    },
    {
      path: 'attendance', //考勤管理
      component: () => import('@/views/after-sale/personnel/attendance/index'),
      name: 'attendance',
      meta: { title: 'attendance' }
    },
    {
      path: 'performance', //绩效管理
      component: () => import('@/views/after-sale/personnel/performance/index'),
      name: 'performance',
      meta: { title: 'performance' }
    },
    {
      path: 'employeePerformance', //员工绩效
      component: () =>
        import('@/views/after-sale/personnel/employeePerformance/index'),
      name: 'employeePerformance',
      meta: { title: 'employeePerformance' }
    },
    {
      path: 'addPerformance', //新增绩效规则
      hidden: true,
      component: () =>
        import('@/views/after-sale/personnel/performance/addPerformance'),
      name: 'addPerformance',
      meta: { title: 'addPerformance' }
    },
    {
      path: 'salaryReport', //工资报表
      component: () =>
        import('@/views/after-sale/personnel/salaryReport/index'),
      name: 'salaryReport',
      meta: { title: 'salaryReport' }
    },
    {
      path: 'salaryDetail', //详情工资
      component: () =>
        import('@/views/after-sale/personnel/salaryReport/salaryDetail'),
      hidden: true,
      name: 'salaryDetail',
      meta: { title: 'salaryDetail' }
    }
  ]
}

export default activity
